<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Pub:head" />
    <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>

    <script>
        $(function(){
            var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea[name="content"]', {
                    allowFileManager : true,
                    autoHeightMode : true,
                    afterCreate : function() {
                        this.loadPlugin('autoheight');
                    }
                });
            });
        })
    </script>


    <style>body {
        background-color: #dbeefd
    }</style>
</head>
<body>
<div class="box1">
    <fieldset style="border-color:#999999;">

        <legend>客户修改</legend>

        <form action="__URL__/yewuupdatesave" method="post">
                <table class="tableStyle" width="100%" border="0" cellspacing="0" cellpadding="0">

                    <table class="tableStyle">
                        <tr>
                            <td width="15%" class="light">项目名称</td>
                            <td width="85%">
                                <input type="text" name="name" id="name"  value="{$data['name']}" style="width:400px;" /></td>
                        </tr>


                        <tr>
                            <td width="15%" class="light">公司名：</td>
                            <td width="85%">{$data["company"]}</td>
                        </tr>

                        <tr>
                            <td width="15%" class="light">联系人</td>
                            <td width="85%">{$data["cname"]}</td>
                        </tr>

                        <tr>
                            <td width="15%" class="light">联系电话：</td>
                            <td width="85%">{$data["tel"]}</td>
                        </tr>

                        <tr>
                            <td width="15%" class="light">业务类型：</td>
                            <td width="85%">
                                <select name="type">
                                    <volist name="list" id="vo">
                                        <option value="{$vo['id']}"
                                        <?php
            $id=$data['type'];
            if($id==$vo['id']){
            echo selected;
            }
        	 ?> >{$vo['name']}</option>
                                    </volist>
                                </select>
                            </td>
                        </tr>

        <tr>
            <td width="15%" class="light">关键词：</td>
            <td width="85%">
           <textarea type="text" name="keyword" id="keyword"  style="width:200px;height:100px">{$data['keyword']}</textarea> </td>
        </tr>
                    <tr>
                        <td width="15%" class="light">内容</td>
                        <td width="85%">

                        <textarea name="content" style="width:800px;height:400px;visibility:hidden;">
                            <?php echo   htmlspecialchars_decode($data['content'])?> </textarea>

                        </td>
                        </tr>

                    <tr>
                        <td width="15%" class="light">备案</td>
                        <td width="85%">
                            <input type="checkbox" name="beian" id="beian"
                                   <?php
                                   if($data['beian']=="1")
                                   echo "checked";
                                   ?>
                                   value="1"/>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" class="light">合同价格</td>
                        <td width="85%">	  <input type="text" name="price" id="price"  value="{$data['price']}"/></td>
                    </tr>

                    <tr>
                        <td width="15%" class="light">备注</td>
                        <td width="85%">
                            <textarea cols="60"name="statusnote" rows="8" wrap="virtual" style="width:200px;height:100px"  >{$data['statusnote']}</textarea>
                        </td>
                    </tr>


                </table>




            </table>
            <input type="submit" name="button" id="button" value="修改"/>
            <input name="id" type="hidden" id="id" value="{$data['id']}"/>
        </form>
    </fieldset>
</div>


</body>
</html>